package com.bdqn.mapper;

import com.bdqn.entity.Parameters;
import com.bdqn.entity.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StaffManageMapper {
    List<Staff> getStaffInfo(Parameters parameters);
    int getCount(Parameters parameters);
    int addStaffInfo(Staff staff);
    int delStaffInfo(int id);
    int updateStaffInfo(Staff staff);
    List<Staff> getStaff();
    int delStaffInfoss(int[] ids);

    String Login(@Param("staff_id") String staff_id, @Param("staff_pwd") String staff_pwd);
    int getUserPwd(@Param("staff_id") String staff_id, @Param("oldPass")String oldPass);

    Staff getUserName(String staff);

    int updatePwd(@Param("staffId") String staffId,@Param("newPwd")String newPwd);

}
